import flux from 'flux';
import fluxTestStore from '../stores/FluxTestStore';

let Dispatcher = flux.Dispatcher;
let FluxTestDispatcher = new Dispatcher();


FluxTestDispatcher.register(function (action) {
    switch (action.actionType) {
        case "addNumber":
            debugger;
            fluxTestStore.changeNumber(action.number);
            fluxTestStore.emitChange();
            break;
    }
})

export default FluxTestDispatcher



